package com.kc.business.service.impl;

import com.kc.business.domain.BizCulturalOrder;
import com.kc.business.mapper.BizCulturalOrderMapper;
import com.kc.business.service.IBizCulturalOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @author zhangshuo
 * @version 1.0
 * @date 2020/9/28
 */
@Service
public class BizCulturalOrderServiceImpl implements IBizCulturalOrderService {
    @Resource
    BizCulturalOrderMapper culturalOrderMapper;

    /**
     * 文创订单列表
     *
     * @param culturalOrder
     * @return
     */
    @Override
    public List<BizCulturalOrder> getList(BizCulturalOrder culturalOrder) {
        return culturalOrderMapper.select(culturalOrder);
    }

    /**
     * 修改文创订单
     *
     * @param culturalOrder
     * @return
     */
    @Override
    public int edit(BizCulturalOrder culturalOrder) {
        return culturalOrderMapper.updateByPrimaryKeySelective(culturalOrder);
    }
}
